<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page session="true"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
	content="text/html; charset=windows-1251">
</head>

<body>
<!--  script type="text/javascript">
	function setParam()
	{
		var elem = document.getElementById("action");
		elem.value = "load";	
	}
	
</script-->
	<h1>Enter dish fields</h1>
	<br />
	<form:form commandName="DISH">
		<table>
			<tr>
				<td colspan="2"><form:errors path="*" cssStyle="color : red;" /></td>
			</tr>
			<tr>
				<td>Code :</td>
				<td><form:input path="code" /></td>
			</tr>
			<tr>
				<td>Weight :</td>
				<td><form:input path="weight" /></td>
			</tr>
			<tr>
				<td>Category :</td>
				<td><form:input path="category" /></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="Save" /></td>
			</tr>
		</table>
		
		<!--form action="UpdateDish" method="get">
			<input type="text" name="code" id="code" />
			<button name="subject" type="submit" value="Load">Load</button>
		</form-->
		<!--input type="text" name="action" id="action" />
		<button type="button" onclick="setParam()">Load</button-->

	</form:form>
</body>
</html>